<html>
<head><title>Login</title></head>
<script language="javascript">  
function check() {  

if (document.frm.username.value=="") {  
alert("用户名不能为空");  
return false;  
}  
if (document.frm.password.value=="") {  
alert("密码不能为空");  
return false;  
}  
if (document.frm.username.value!="admin") {  
alert("用户名不正确");  
return false;  
}  
if (document.frm.password.value!="admin") {  
alert("密码不正确");  
return false;  
}  
document.frm.submit()  
}  
</script>  


<body bgcolor="#99CCCC"><div align="center">
    	<div align="right"><a href="login.html">login|</a> <a href="join.html">Join|</a> 
        <a href="#">Index|</a> <a href="index.html">Main</a></div>
    <form action="index.html" method="get" name="frm" id="frm" >
    <table width="350" border="1">
      <tr bgcolor="#999999">
        <td width="93">用户名：</td>
        <td width="241">
          <input type="text" name="username" id="username" />
        </td>
      </tr>
      <tr bgcolor="#999999">
        <td>密&nbsp;&nbsp;&nbsp;&nbsp;码：</td>
        <td>
          <input type="password" name="password" id="password" />
        </td>
      </tr>
      <tr>
        <td><input name="submit" type="submit" value="提交" onClick="return check()"/></td>
        <td><input name="reset" type="reset" value="重置" /></td>
      </tr>
    </table>
    </form>

</body>
</html>
